<?php

/*
 * This file takes a Get parameter representing a tweet id and re-tweets it
 */

session_start();
require_once('../twitter/configuration.php');
require_once('../twitter/twitteroauth/twitteroauth.php');

$tweet_id=$_GET['tweet-id'];

$twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['user_oauth_token'], $_SESSION['user_oauth_token_secret']);

$twitteroauth->post('http://api.twitter.com/1/statuses/retweet/'.$tweet_id.'.json');

?>